#include<iostream>
using namespace std;

struct Student{
    int id;
    string name;
    double score;
};

int main(){
    Student stu1, stu_arr[3], *stu_ptr;

    stu1.id=1;
    stu1.name="张三";
    stu1.score=95.2;

    stu_ptr= &stu1;

    cout << "姓名: " << stu1.name << endl;
    cout << "学号: " << stu_ptr->id << endl;
    cout << "分数: " << stu_ptr->score << endl;
    return 0;
}

